-- local myText = "这是要显示的文字"
-- GameTooltip:SetOwner(UIParent, "ANCHOR_NONE")
-- GameTooltip:SetText(myText)
-- GameTooltip:Show()



-- local tooltip = CreateFrame("GameTooltip", "MyAddonTooltip", UIParent, "GameTooltipTemplate")
-- tooltip:SetOwner(UIParent, "ANCHOR_NONE")
-- tooltip:SetPoint("TOP", 0, -100)
-- tooltip:AddLine("这是一个提示")

-- local f = CreateFrame("Frame")
-- f.elapsed = 0
-- f:SetScript("OnUpdate", function(self, elapsed)
--     self.elapsed = self.elapsed + elapsed
--     if self.elapsed >= 3 then
--         tooltip:Hide()
--         self.elapsed = 0
--     end
-- end)

-- tooltip:Show()